import request from "../utils/request";

// 用户登录
export const login = data => {
    return request({
        method: 'POST',
        url: '/admin/login',
        data
    })
}
// 注销登录
export const quitLogin = () => {
    return request({
        method: 'GET',
        url: '/admin/logout'
    })
}
// 修改密码
export const editPassword = data => {
    return request({
        method: 'POST',
        url: '/admin/updatePassword',
        data
    })
}
